![]() |
PBCloseSync |
||||
Header: | Devices.h | Carbon status: | Supported | |
Closes an open file.
OSErr PBCloseSync ( ParmBlkPtr paramBlock );
A pointer to a basic File Manager parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, a file reference number to the file to close.
The PBCloseSync function writes the contents of the access path buffer specified by the ioRefNum field to the volume and removes the access path.
Some information stored on the volume won’t be updated until PBFlushVolSync is called.
Do not call PBCloseSync with a file reference number of a file that has already been closed. Attempting to close the same file twice may result in loss of data on a volume. .
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)